package group.program.Service.impl;

import group.program.Service.LoginService;
import group.program.mapper.LoginMapper;
import group.program.pojo.trafficPojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    @Override
    public User login(User user) {
        return loginMapper.getByUsernameAndPassword(user);
    }
}
